<template>
	<view>
		<view class="navigation-bar">
						<view @click="turnBack"><image src="/static/左箭头.png"></image></view><text>收支明细</text>
		</view>
		<view class="background"></view>
		<view class="head">
			<view class="balance">
				<view>1500</view>
				<view>当前现金余额(元)</view>
				<button class="withdrawal" @click="nextpage">提现</button>
			</view>
			<view class="income">
				<view>累计收入(元)：1700元</view>
				<view>累计提现(元)：200元</view>
			</view>
		</view>
		<view class="body">
			<view>收支明细</view>
			<view class="inDetail">
				<view class="service">
					<view>
						**车辆清洗，抛光打蜡服务
					</view>
					<view>
						核销时间：2020-10-12<text>11.09</text>
					</view>
				</view>
				<view class="money">
					+50.00
				</view>
			</view>
			<view class="inDetail">
				<view class="service">
					<view>
						**车辆清洗，抛光打蜡服务
					</view>
					<view>
						核销时间：2020-10-12<text>11.09</text>
					</view>
				</view>
				<view class="money">
					+50.00
				</view>
			</view>
			<view class="inDetail">
				<view class="service">
					<view>
						**车辆清洗，抛光打蜡服务
					</view>
					<view>
						核销时间：2020-10-12<text>11.09</text>
					</view>
				</view>
				<view class="money">
					+50.00
				</view>
			</view>
			<view class="inDetail">
				<view class="service">
					<view>
						**车辆清洗，抛光打蜡服务
					</view>
					<view>
						核销时间：2020-10-12<text>11.09</text>
					</view>
				</view>
				<view class="money">
					+50.00
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			turnBack() {
				uni.navigateBack({
					url: "/pages/index/index"
				})
			},
			nextpage(){
				uni.navigateTo({
					url:"/pagesIncomeDetails/pages/afw/afw"
				})
			}
		}
	}
</script>

<style>
	.navigation-bar {
		position: relative;
		height: 150rpx;
		display: flex;
		align-items: center;
		background-color: #287BF6;
	}

	.navigation-bar>view>image {
		width: 30rpx;
		height: 30rpx;
		margin-left: 30rpx;
	}
	
	.navigation-bar>text {
		color: #FFF;
		margin-right: 40rpx;
		flex-grow: 1;
		text-align: center;
	}

	.background {
		position: absolute;
		background-color: #287BF6;
		width: 100%;
		height: 300rpx;
		z-index: 0;
	}

	.head {
		position: relative;
		display: flex;
		align-items: center;
		background-color: #287BF6;
		padding-bottom: 30rpx;
	}

	.balance {
		width: 385rpx;
		border-right: 5rpx solid #639DF5;
	}

	.balance>view:nth-child(1) {
		text-align: center;
		color: #FFF;
		font-size: 40rpx;
	}

	.balance>view:nth-child(2) {
		text-align: center;
		color: #FFF;
		margin-bottom: 30rpx;
	}

	.withdrawal {
		width: 230rpx;
		height: 60rpx;
		border-radius: 15px;
		background-color: #FF6532;
		color: #FFF;
		line-height: 60rpx;
		font-size: 28rpx;
	}

	.income {
		width: 385rpx;
		text-align: center;
		color: #FFF;
	}

	.income>view:nth-child(2) {
		margin: 30rpx 0;
	}

	.body {
		position: relative;
		margin: 20rpx;
		border-radius: 10px;
		background-color: #FFF;
	}

	.body>view:nth-child(1) {
		border-bottom: 10rpx solid #F7F7F7;
		font-size: 35rpx;
		margin: 0 25rpx;
		padding: 25rpx 0;
		font-weight: bold;
	}

	.inDetail {
		display: flex;
		justify-content: space-between;
		margin: 0 25rpx;
		padding-bottom: 20rpx;
		border-bottom: 5rpx solid #F7F7F7;
	}

	.service>view:nth-child(1) {
		margin: 20rpx 0;
	}

	.service>view:nth-child(2) {
		font-size: 25rpx;
		color: #AFAFAF;
	}

	.money {
		margin-top: 50rpx;
		color: #FF4A13;
	}
</style>